package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
@Table(name = "CM_WK_LINERHANGER_DESIGNDATA")
// 尾管挂设计数据 对应表 CM_WK_LINERHANGER_DESIGNDATA
public class CM_WK_LinerhangerDesignData extends BABaseEntity {
    @Id
    @GenericGenerator(name="linerDesignGenerator", strategy="uuid")
    @GeneratedValue(generator="linerDesignGenerator")
    @Column(name = "CM_WK_LINERHANGER_DESIGNDATA_ID")
    private String CM_WK_LinerhangerDesignData_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "FACTORY", length = 50)
    private String factory;

    @Basic
    @Column(name = "TAILCASEPRESSURE1")
    private Double tailCasePressure1;

    @Basic
    @Column(name = "BALLPRESSURE1")
    private Double ballPressure1;

    @Basic
    @Column(name = "RUBBERPRESSURE1")
    private Double rubberPressure1;

    @Basic
    @Column(name = "TOPSEALWEIGHT1")
    private Double topSealWeight1;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;
}
